'use strict';

const BASE64 = 'url(src/img/loading.png)'
let loading = document.createElement('div');
loading.style.zIndex = 9999;
loading.style.width = '100%';
loading.style.height = '100%';
loading.style.position = 'fixed';
loading.style.top = '0px';
loading.style.left = '0px';
loading.style.backgroundImage = BASE64;
loading.style.backgroundRepeat = 'no-repeat';
loading.style.backgroundSize = '5%';
loading.style.backgroundPosition = 'center';
loading.style.display = 'none';
let body = document.getElementsByTagName('body')[0].appendChild(loading);

export default class {
	constructor() {
	}

	static show() {
		loading.style.display = 'inline';
	}

	static hide() {
		loading.style.display = 'none';
	}
}
